//
// Created by Arikes on 9/25/21.
//

#ifndef DESIGNERMODE_STRATEGY_H
#define DESIGNERMODE_STRATEGY_H

#include <iostream>
namespace StrategyMode
{
    class Strategy{
    public:
        virtual void strategyMethod() = 0;
    };

    class ConcreteStrategyA:public Strategy
    {
    public:
        virtual void strategyMethod()
        {
            std::cout<<"具体策略A的策略方法被访问！"<<std::endl;
        }
    };

    class ConcreteStrategyB:public Strategy
    {
    public:
        virtual void strategyMethod()
        {
            std::cout<<"具体策略B的策略方法被访问！"<<std::endl;
        }
    };
}

#endif //DESIGNERMODE_STRATEGY_H
